package com.soft.javase.day02.practice.override;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/16
 */
public class Employee {
    private String name;
    private String address;
    private double baseSalary;

    public Employee(String name, String address, double baseSalary) {
        this.name = name;
        this.address = address;
        this.baseSalary = baseSalary;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getBaseSalary() {
        return this.baseSalary;
    }

    public void setBaseSalary(double baseSalary) {
        this.baseSalary = baseSalary;
    }

    public void show() {
        System.out.println("员工基本信息：");
        System.out.println("姓名：" + this.name);
        System.out.println("地址：" + this.address);
        System.out.println("基本工资：" + this.baseSalary);
    }
}